package cn.edu.sdjzu.xg.eagle.xg23_kcsj_01.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ApprovalState {
    private Long id;
    private int code;       // 状态码：1=通过，2=驳回，0=待审批
    private String descrption; // 描述信息

    // 预定义常量
    public static final int CODE_APPROVED = 1;
    public static final int CODE_REJECTED = 2;
    public static final int CODE_PENDING = 0;
    public Long  getId(){
        return id;
    }
    public void setId(Long id){
        this.id = id;
    }
    public int getCode(){
        return code;
    }
    public void setCode(int code){
        this.code = code;
    }

    public String getDescrption() {
        return descrption;
    }

    public void setDescrption(String descrption) {
        this.descrption = descrption;
    }
}
